package com.chen.springboot.mapper.uniapp;

import com.chen.springboot.dto.uniapp.Banner;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;

@Mapper
public interface BannerMapper {

    @Select("SELECT id, img_url AS imgUrl, href_url AS hrefUrl, type FROM banner")
    List<Banner> getAllBanners();
}
